DX11 CREATE OBJECT BOX

Creates a box object of the given dimensions.

  Syntax
Return Dword = DX11 CREATE OBJECT BOX(width, height, depth, [vertLayout])
  Parameters
width
Float
The width of the cube to be created.
height
Float
The height of the cube to be created.
depth
Float
The depth of the cube to be created.
[Optional] vertLayout
Dword
The object will be created to conform to this vertex layout. Only POSITION, TEXCOORD0, COLOR0 and NORMAL data is created; any other data elements are set to 0. Will use a default VertexLayout (POSITION/COLOR/NORMAL/TEXCOORD) if omitted.

  Returns

The created object.

  See also

OBJECT Functions Menu
DX11 Function Categories